#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	bool change;
	int NO;
	uint32_t EXPR;
	struct watchpoint *next;
	char expr[32];
	/* TODO: Add more members if necessary */
	


} WP;

void init_wp_pool();
WP* new_wp();
void free_wp(int N);
bool check_watchpoint();
void wp_output_change(swaddr_t eip);
void wp_output_all();

#endif
